package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.CoursePreviewDto;
import com.xuecheng.content.model.po.CoursePublish;

import java.io.File;

/**
 * 课程发布相关接口
 */
public interface CoursePublishService {

    /**
     * 获取课程预览信息
     * @param courseId 课程id
     * @return
     */
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);

    /**
     * 提交审核
     * @param companyId 机构id
     * @param courseId 课程id
     */
    public void commitAudit(Long companyId,Long courseId);

    /**
     * 课程发布接口
     * @param companyId 机构id
     * @param courseId 课程id
     */
    public void publish(Long companyId,Long courseId);

    /**
     * 课程静态化
     * @param courseId 课程id
     * @return
     */
    public File generateCourseHtml(long courseId);

    /**
     * 上传课程静态化页面
     * @param courseId 课程id
     * @param file 静态化文件
     */
    public void uploadCourseHtml(Long courseId, File file);

    /**
     * 查询课程发布信息
     * @param courseId 课程id
     * @return 课程发布信息
     */
    CoursePublish getCoursePublish(Long courseId);

//    CoursePublish getCoursePublishCache(Long courseId);

}
